//
//  AY_AudioViewController.h
//  AiYue
//
//  Created by mac on 2023/11/13.
//

#import "AY_BaseViewController.h"

NS_ASSUME_NONNULL_BEGIN

@protocol SXAudioDelegate <NSObject>
-(void)audioDismiss;
-(void)audioChangePage:(NSInteger)page;
-(void)audioChangeChapter:(BOOL)isNext;
-(void)pushBookDetailWithBookId:(NSString *)bookId;
-(void)audioDidselectChapter:(NSInteger)index;
@end

@interface AY_AudioViewController : AY_BaseViewController

@property (nonatomic,weak) id<SXAudioDelegate>delegate;
@property (nonatomic, strong) BookModel *bookModel;
- (void)setContent:(NSAttributedString *)content andChapters:(NSMutableArray *)chapters andPage:(NSInteger)page andChapterIndex:(NSInteger)chapterIndex andPages:(NSArray *)pages andIsFanye:(BOOL)isfanye andChapterTitle:(NSString *)chapterTitle;
@property (nonatomic, assign) BOOL isInit;
@property (nonatomic, assign) BOOL isQuit;
@end

NS_ASSUME_NONNULL_END
